package oceanwiki.websocketserver;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @FileName WsServiceAsync
 * @Description
 * @Author Me
 * @date 2024-09-20
 **/

@Service
public class WsServiceAsync {
    @Autowired
    public WebSocketServer webSocketServer;

    @Async
    public void sendInfo(String message) {
        webSocketServer.sendInfo(message);
    }
}
